<?php
/*
 * 代理模式
 */
class really{
    public function run(){
        echo "执行主程序";
    }
}
class proxy{
    //检查权限
    public function checkPermission(){

    }
    public function run(){
        $this->checkPermission();
        (new really())->run();
        $this->resuletInter();
    }
    //结果分析
    public function resuletInter(){

    }
}